package io.itit.ecp.admin.server.service.impl;

import icu.mhb.mybatisplus.plugln.base.service.impl.JoinServiceImpl;
import io.itit.ecp.admin.server.entity.ProductTypeEntity;
import io.itit.ecp.admin.server.mapper.ProductTypeMapper;
import io.itit.ecp.admin.server.service.IProductTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：产品类型服务实现类
 * @Date：Create by 2023-12-02 20:13:28
 */
@Service
public class ProductTypeServiceImpl extends JoinServiceImpl<ProductTypeMapper, ProductTypeEntity> implements IProductTypeService {

    @Override
    public List<ProductTypeEntity> getElevator() {
        return lambdaQuery().like(ProductTypeEntity::getProductTypeName, "电梯").list();
    }

    @Override
    public List<ProductTypeEntity> getChargingStation() {
        return lambdaQuery().like(ProductTypeEntity::getProductTypeName, "充电桩").list();
    }

    @Override
    public List<ProductTypeEntity> getPhotovoltaic() {
        return lambdaQuery().like(ProductTypeEntity::getProductTypeName, "光伏").list();
    }

    @Override
    public List<ProductTypeEntity> getEnergyStorage() {
        return lambdaQuery().like(ProductTypeEntity::getProductTypeName, "储能").list();
    }

    @Override
    public List<ProductTypeEntity> getAirConditioning() {
        return lambdaQuery().like(ProductTypeEntity::getProductTypeName, "空调").list();
    }
}